<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

require_once '../model/entradaItemModel.php';
require_once '../dao/entradaItemDAO.php';

/**
 * Description of entradaItemController
 *
 * @author Santos
 */
class entradaItemController {

    public function setDados(entradaItemModel $model) {
        $dao = new entradaItemDAO;
        return $dao->setDados($model);
    }

    public function getModel() {
        return new entradaItemModel();
    }

    public function deleteDados(entradaItemModel $model) {
        $dao = new entradaItemDAO();
        return $dao->deleteDados($model);
    }

    public function getDados(entradaItemModel $model) {
        $dao = new entradaItemDAO();
        return $dao->getDados($model);
    }

}
